package io.sage.modules.statistics.dao;

import java.util.List;
import java.util.Map;

import io.sage.modules.statistics.vo.BStatisVo;
import org.apache.ibatis.annotations.Param;

import io.sage.modules.statistics.entity.BStatisticsHumidity;
import io.sage.modules.statistics.entity.BStatisticsHumidityExample;

/**
 * 湿度
 * @author xjh
 *
 */
public interface BStatisticsHumidityMapper {
    int countByExample(BStatisticsHumidityExample example);

    int deleteByExample(BStatisticsHumidityExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BStatisticsHumidity record);

    int insertSelective(BStatisticsHumidity record);

    List<BStatisticsHumidity> selectByExample(BStatisticsHumidityExample example);

    BStatisticsHumidity selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BStatisticsHumidity record, @Param("example") BStatisticsHumidityExample example);

    int updateByExample(@Param("record") BStatisticsHumidity record, @Param("example") BStatisticsHumidityExample example);

    int updateByPrimaryKeySelective(BStatisticsHumidity record);

    int updateByPrimaryKey(BStatisticsHumidity record);

    /**
	 * 湿度列表
	 * @param example
	 * @return
	 */
	List<BStatisticsHumidity> selectStatisticsHumidityList(Map<String, Object> params);

	/**
	 * 批量添加传感器的温度
	 * @param list
	 * @return
	 */
	int saveHumidityList(@Param("list")List<BStatisticsHumidity> list);

    List<BStatisVo> selectListByWarehouseId(Map params);
}
